import jpcap.JpcapCaptor;
import jpcap.NetworkInterface;
import jpcap.NetworkInterfaceAddress;


public class listInterface {
	
	public static void listNetworkInterface()
	{
		NetworkInterface[] Network_interface = JpcapCaptor.getDeviceList();
		
		for (int i=0;i<Network_interface.length;i++)
		{
			System.out.println(Network_interface[i].name+" "+ Network_interface[i].description);
			
			NetworkInterfaceAddress [] ADDR = Network_interface[i].addresses;
		    System.out.println("IP Addres :"+ADDR[1].address);
		    System.out.println("                                                                                                 ");
		    System.out.println("<----------------------------------------------------------------------------------------------->");
			
		    }
		    
		    
		}
	
	public static void main(String[] args)
	{
		listNetworkInterface();
	}
}

